<template>
  <section v-loading="loading" class="cms-body">
    <div class="cms-list-header"></div>
    <el-table :data="tableData" stripe style="width: 100%" @selection-change="checkIds">
      <el-table-column type="selection" width="35" align="right"></el-table-column>
      <el-table-column prop="id" label="ID" width="50" align="center"></el-table-column>
      <el-table-column prop="ossName" label="备注名字" align="center"></el-table-column>
      <el-table-column prop="ossType" label="类型" align="center">
        <div slot-scope="scope">
          <span v-if="scope.row.ossType===1">腾讯云</span>
          <span v-if="scope.row.ossType===2">阿里云</span>
          <span v-if="scope.row.ossType===3">七牛云</span>
        </div>
      </el-table-column>
      <el-table-column prop="bucketName" label="Bucket名" align="center"></el-table-column>

      <el-table-column label="操作" align="center" width="85">
        <div slot-scope="scope">
          <cms-button type="edit" @click.native="routerLink('/oss/update','update',scope.row.id)" v-perms="'/oss/update'"></cms-button>
        </div>
      </el-table-column>
    </el-table>
    <!-- 表格底部 -->
    <div class="cms-list-footer">
      <div class="cms-left">
      </div>
    </div>
  </section>
</template>

<script>
  import listMixins from '@/mixins/list'

  export default {
    mixins: [listMixins],
    data() {
      return {
        params: {//只需要业务参数
          pageNo: 1,
          pageSize: 10
        }
      };
    },
    created() {
      this.initTableData(this.$api.ossConfigPageList, this.params);
    }
  };
</script>

<style>

</style>
